#include "Mystdio.h"
#include<stdio.h>
#define filename "log.txt"
int main(){
  _FILE *fp=_fopen(filename,"a");
  if(fp==NULL){
    printf("open is fail\n");
    return 1;
  }
  const char * str ="hello linux\n";
  int cnt=10;
  while(cnt){

    _fwrite(fp,str,strlen(str));
    cnt--;
    sleep(1);
  }
 // _fwrite(fp,str,sizeof(str));

  _fclose(fp);
return 0;
}
